//
//  WAWCollectionViewCell.m
//  TBIndexView
//
//  Created by waw on 2018/2/6.
//  Copyright © 2018年 极客天地. All rights reserved.
//

#import "WAWCollectionViewCell.h"

@implementation WAWCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    
    if (self) {
        [self setUPUI];
        
        UILongPressGestureRecognizer * longPress = [[UILongPressGestureRecognizer alloc]initWithTarget:self action:@selector(longPressAction:)];
        [self addGestureRecognizer:longPress];
        
    }
    return self;
}

-(void) setUPUI{
    
    UILabel *  label = [[UILabel alloc]initWithFrame:self.bounds];
    [self.contentView addSubview:label];
    self.wlabel = label;
    label.textAlignment = NSTextAlignmentCenter;
    
}

-(void) longPressAction:(UILongPressGestureRecognizer*)reg{
    
    NSLog(@"字母长按");
}

@end
